/*
 * @Author: modefy
 * @Date: 2021-12-06 10:13:57
 * @LastEditors: modefy
 * @LastEditTime: 2023-04-26 14:20:07
 * @Description: Description
 */
import { ElMessage } from 'element-plus';

export function toast(msg, type = "success", duration = 2000){
    return ElMessage({
        message: msg,
        type: type,
        duration: duration
      })
}